﻿
@{
    ViewData["Title"] = "考试活动";
    Layout = "~/Views/Shared/_LayoutHUI.cshtml";
}

<header class="hui-header">
    <a href="http://dongqu.xsmd.com.cn/">
        <div id="hui-back"></div>
    </a>
    <h1></h1>
    <div id="countdown4" style="width:300px;height: 44px;line-height:44px;"> </div>
</header>
<form class="hui-wrap" action="/AvoidTheLoginTest/Fraction" method="post" id="form1">

    <div style=" border-radius:8px; background:#FFFFFF; margin-top:20px;">
        <div style="text-align:center; line-height:28px; font-weight:700; padding-bottom:12px; font-size:16px;">距离考试结束还有</div>
        <div id="countdown4"></div>
    </div>


    <div class="hui-content" style="padding:10px;">
        <div class="hui-common-title" style="margin-top:15px;">
            <div class="hui-common-title-line"></div>
            <div class="hui-common-title-txt">单选</div>
            <div class="hui-common-title-line"></div>
        </div>
        <input type="hidden" name="cid" value="@ViewBag.cid" />
        <input type="hidden" name="lid" value="@ViewBag.lid" />
        <div>
            @{ int i = 1;}
            @foreach (var item in (List<TestSystem.Model.Question>)ViewBag.dxlist)
            {

                <h4 style="padding-left:10px;">@i、@item.QuestionText</h4>

                <div class="hui-form-items">
                    <div class="hui-form-radios" style="line-height:38px;">
                        <input type="radio" id="@i A" value="A" name="@i DC" /><label for="@i A">
                            A:@item.OptionA
                        </label><br />
                        <input type="radio" id="@i B" value="B" name="@i DC" /><label for="@i B">
                            B:@item.OptionB
                        </label><br />
                        <input type="radio" id="@i C" value="C" name="@i DC" /><label for="@i C">
                            C:@item.OptionC
                        </label><br />
                        <input type="radio" id="@i D" value="D" name="@i DC" /><label for="@i D">
                            D:@item.OptionD
                        </label><br />
                    </div>
                    @{
                        i++;
                    }
                </div>
            }
        </div>


        <div class="hui-common-title" style="margin-top:15px;">
            <div class="hui-common-title-line"></div>
            <div class="hui-common-title-txt">判断</div>
            <div class="hui-common-title-line"></div>
        </div>

        <div>
            @{ int m = 1;}
            @foreach (var item in (List<TestSystem.Model.Question>)ViewBag.pdlist)
            {

                <h4 style="padding-left:10px;">@m、@item.QuestionText</h4>

                <div class="hui-form-items">
                    <div class="hui-form-radios" style="line-height:38px;">
                        <input type="radio" id="@m A1" value="对" name="@m PD" /><label for="@m A1">
                            对:@item.OptionA
                        </label><br />
                        <input type="radio" id="@m B1" value="错" name="@m PD" /><label for="@m B1">
                            错:@item.OptionB
                        </label><br />
                    </div>
                    @{
                        m++;
                    }
                </div>
            }
        </div>



        <div class="hui-common-title" style="margin-top:15px;">
            <div class="hui-common-title-line"></div>
            <div class="hui-common-title-txt">多选</div>
            <div class="hui-common-title-line"></div>
        </div>

        <div>
            @{ int q = 1;}
            @foreach (var item in (List<TestSystem.Model.Question>)ViewBag.dsxlist)
            {
                <h4 style="padding-left:10px;">@q、@item.QuestionText</h4>

                <div class="hui-form-items">
                    <div class="hui-form-radios" style="line-height:38px;">
                        <input type="checkbox" id="@q DXC1" value="A" name="@q DXC" /><label for="@q DXC1">
                            A:@item.OptionA
                        </label><br />
                        <input type="checkbox" id="@q DXC2" value="B" name="@q DXC" /><label for="@q DXC2">
                            B:@item.OptionB
                        </label><br />
                        <input type="checkbox" id="@q DXC3" value="C" name="@q DXC" /><label for="@q DXC3">
                            C:@item.OptionC
                        </label><br />
                        <input type="checkbox" id="@q DXC4" value="D" name="@q DXC" /><label for="@q DXC4">
                            D:@item.OptionD
                        </label><br />
                    </div>
                    @{
                        q++;
                    }
                </div>
            }


        </div>



    </div>
    <button type="submit" class="hui-button hui-button-large hui-primary" style="margin-top:15px;">交卷</button>
    <br />
</form>
@section Scripts{
    <script>

    hui.countdown('@ViewBag.dt', '#countdown4', 4);
    setTimeout(altime, @ViewBag.totalmillisecht)
    setTimeout("document.form1.submit()", @ViewBag.totalmillisec)
        function altime() {
            hui.upToast("距离活动结束还有5分钟");
        }
    </script>

}


